const Mock = require('mockjs')

const data = Mock.mock({
  'list|15': [
    {
      'id': '@id',
      'name': '@city',
      'count': 0,
      'itemCheck': false,
      'price': '@integer(10, 100)',
      'img': '@image(200x200, @color, @city)'
    }
  ]
})
// 模拟接口抛出数据
Mock.mock('/api/cart', data.list)